<?php
class Index_Action_Do {
	protected $_parseuri;
	protected $_autointerface;
	protected $_autoloadclassfile;
	protected $_autoloaddir;
	protected $_class;
	protected $_zend_controller_action;
	protected $_zend_db;
	public function __construct(Zend_Controller_Action &$value ,Zend_Db_Adapter_Pdo_Mysql &$db) {
		$this->_zend_controller_action = &$value;
		$this->_zend_db = &$db;
		$this->_parseuri ();
	}
	protected function _parseuri() {
		$this->_parseuri = $_GET;
		if (isset ( $this->_parseuri ['action'] ) && isset ( $this->_parseuri ['do'] ) && (! empty ( $this->_parseuri ['action'] ) && ! empty ( $this->_parseuri ['do'] ))) {
			$this->_autoloaddir = INDEX_MODELS . 'index/action/';
			$this->_autointerface = $this->_parseuri ['action'] . 'interface.php';
			$this->_autoloadclassfile = $this->_parseuri ['action'] . '_' . $this->_parseuri ['do'];
			$this->_autointerface = $this->_autoloaddir . $this->_parseuri ['action'] . '/';
			Zend_Loader::loadFile ( 'interface.php', $this->_autointerface );
			Zend_Loader::loadClass ( $this->_autoloadclassfile, $this->_autoloaddir );
			$this->_class = new $this->_autoloadclassfile ( $this->_zend_controller_action ,$this->_zend_db);
		}
	
	}


}